package sk.sodik.atomFilter;

import java.io.ByteArrayOutputStream;
import java.io.PrintWriter;
import java.util.logging.Logger;

public class LogUtil {

	public static void exception(Logger log, Exception e) {
		ByteArrayOutputStream os = new ByteArrayOutputStream();
		PrintWriter printer = new PrintWriter(os);
		e.printStackTrace(printer);
		printer.close();
		log.severe(new String(os.toByteArray()));
	}

}
